package com.imoblife.brainwavestus;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class TestimonialsActivity extends BaseActivity implements OnClickListener {

	private Button backButton;
	private Button homeButton;
	private Button reviewButton;


	protected void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.reviews_layout);
		reviewButton = (Button) findViewById(R.id.review);
		reviewButton.setOnClickListener(this);
		
		initTitleName(getString(R.string.info));
	}

	protected void onDestroy() {
		super.onDestroy();
	}

	public void onClick(View v) {
		if (backButton == v) {

			finish();

		} else if (homeButton == v) {
			startActivity(new Intent(TestimonialsActivity.this, MainActivity.class));
		} else if (reviewButton == v) {
			startActivity(new Intent(
					Intent.ACTION_VIEW,
					Uri.parse("https://market.android.com/details?id=imoblife.brainwavestus&feature=search_result&hl=en")));

		}

	}

	@Override
	public void onTitleMenuClicked(View v) {
		// TODO Auto-generated method stub
		
	}


	@Override
	public void onSubScriptionClicked(View v) {
		// TODO Auto-generated method stub
		
	}


	@Override
	public void onMySubScriptionClicked(View v) {
		// TODO Auto-generated method stub
		
	}

}
